home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / filesy~1 / mfs6011s.zoo / fsck / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-31  |  2.0 KB  |  86 lines

  1. /* Global and static Variables */
  2.  
  3. #include "../minixfs/hdio.h"
  4.  
  5. extern int __mint;
  6.  
  7. #ifndef EXTERN
  8. #define EXTERN extern
  9. extern char lfname[];
  10. #else
  11. char lfname[]="lost+found";
  12. #endif
  13.  
  14. /* General linked list structure */
  15. typedef struct linked_list
  16. {
  17.     long member;
  18.     struct linked_list *next;
  19. } llist;
  20.  
  21. /* Structure for determining inode names */
  22.  
  23. typedef struct inlist
  24. {
  25.     unsigned inum;        /* Inode number */
  26.     unsigned iparent;    /* Parent directory */
  27.     struct inlist *next;    /* pointer to next entry */
  28.     char name[1];        /* Actually longer than this ... */
  29. } ilist;
  30.  
  31. EXTERN char *drvnam;
  32.  
  33. EXTERN char version;        /* Non-zero for V2 */
  34.  
  35. EXTERN char modified,preen,no_size;
  36.  
  37. EXTERN ilist *inolist;
  38.  
  39. EXTERN llist *inums;
  40.  
  41. EXTERN llist *zinums;
  42.  
  43. EXTERN long maxzone,minzone;    /* Max/Min Allowed Zone Numbers */
  44. EXTERN long maxino;        /* Max Inode Number */
  45. EXTERN long ioff;        /* Zone offset to inode block */
  46.  
  47. EXTERN int incr;        /* Directory increment */
  48.  
  49. EXTERN long berr;        /* Bitmap errors */
  50.  
  51. EXTERN char badroot;        /* Bad root inode or forced reallocation */
  52.  
  53. EXTERN long zonecount;            /* Maximum Zone Count */
  54. EXTERN long indcount;            /* Number of indirection blocks */
  55. EXTERN char dindcount;            /* Number of double indirection blocks */
  56. EXTERN char tindcount;            /* '1' If triple indirection block */
  57.  
  58. EXTERN char trunc,done_trunc;        /* Flags for truncation of files */
  59.  
  60. EXTERN char quit_trav;
  61.  
  62. /* These only appear in 'fsck.c' */
  63. #if defined(V1) || defined(V2)
  64. static d_inode *rip;    
  65. static d_inode zinode;            /* zero inode */
  66. static inode_stat *ist,*inode_status;
  67. static long dirsparse;            /* to find sparse directories */
  68. #endif
  69.  
  70. EXTERN long cino;            /* current inode */
  71.  
  72. EXTERN unsigned *zbitmap,*szbitmap;    /* Zone and shadow zone bitmap */
  73. EXTERN unsigned *ibitmap;        /* Inode Bitmap */
  74.  
  75. EXTERN int cdirty;    
  76.  
  77. EXTERN super_block *Super;
  78.  
  79. EXTERN long ndir,nreg,nfifo,nchr,nblk,nsym,zfree,ifree;
  80.  
  81. EXTERN char ally,alln,info;
  82.  
  83. EXTERN unsigned lfinode;
  84.  
  85. EXTERN struct hdinfo hdinf;
  86.